package Strategy;

public class StrategyPatternDemo {

    public static void main(String[] args) {

        Context addContext = new Context(new AddOperation());
        System.out.println(" 10 + 5 = "  + addContext.executeStrategy(10, 5));

        Context subContext = new Context(new SubtractOperation());
        System.out.println(" 10 - 5 = " + subContext.executeStrategy(10, 5));

        Context mulContext = new Context(new MultiplyOperation());
        System.out.println(" 10 * 5 = " + mulContext.executeStrategy(10, 5));
    }
}
